package org.yjc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.yjc.entity.Log;
import org.yjc.repository.LogRepository;

@Service
public class LogService {
	@Autowired
	private LogRepository logDAO;

	public void save(Log log) {
		logDAO.save(log);
		
	}

	public Page<Log> findAll(Pageable pageable) {
		return logDAO.findAll(pageable);
	}

	public Page<Log> findAll(Specification spec, Pageable pageable) {
		return logDAO.findAll(spec, pageable);
	}
}
